package chapter15;

/**
 * Created by lzy
 * Date: 2018/5/14
 */
public class SerialNumberedImp implements SerialNumbered {
    private static long counter = 1;

    private final long serialNumber = counter++;

    @Override
    public long getSerialNumber() {
        return serialNumber;
    }
}
